OPERATION
register_asset
@mount("ft4.admin.register_asset")
operation register_asset(name: text, symbol: text, decimals: integer, icon_url: text)Registers a new asset on this chain, with this chain as issuer of the token.
Throws if not signed by the admin.
Throws if the asset cannot be registered. Common cases include:
- the input parameters do not follow this criteria:
- strings are longer than 1024
- decimals is not in the accepted range [0, 78] (inclusive)
icon_urlis not a valid URL
Parameters
- name — the name of the asset
- symbol — the symbol (or ticker) of the asset
- decimals — the number of decimals this asset will have
- icon_url — an URL to an icon of the asset to register, can be an empty string in case of no icon url
See Also
- register_asset_with_type — if you need to specify a type different from
asset.ASSET_TYPE_FT4
© 2024 Chromia